class ThreadLocalUtil

  REQUEST_ID = 'Request-Id'

  def self.request_id
    return Thread.current.thread_variable_get(REQUEST_ID) || ''
  end

  def self.request_id=(id)
    Thread.current.thread_variable_set(REQUEST_ID, id)
  end
end